﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using SMA = System.Management.Automation;

namespace RSPowershell
{
    [System.Management.Automation.Cmdlet("Get", "RSUrl")]
    public class Get_RSUrl : SMA.Cmdlet
    {
        protected override void ProcessRecord()
        {
            var rep_svc = this.ConnectToReportingService();

            var url = rep_svc.Url;
            this.WriteObject(url);
        }
    }
}
